package com.wsl.aop.security;

/**
 * @author ：wangshuliang
 * @date ：Created in 2019/6/4 8:15
 * @description：
 * @modified By：
 */
public class CurrentUserHolder {
    private static final ThreadLocal<String> holder = new ThreadLocal<>();

    public static String  get(){
        return holder.get()==null?"unknown":holder.get();
    }

    public static void set(String user){
        holder.set(user);
    }
}
